﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;
using System.Data;
namespace BUS
{
    public partial class LoaiVe_BUS
    {
        LoaiVe_DAO LoaiVe_dao;
        public bool ThemLoaiVe(LoaiVe LoaiVe_dto)
        {
            LoaiVe_dao = new LoaiVe_DAO();
            return LoaiVe_dao.ThemLoaiVe(LoaiVe_dto);
        }
        public bool SuaLoaiVe(LoaiVe LoaiVe_dto)
        {
            LoaiVe_dao = new LoaiVe_DAO();
            return LoaiVe_dao.SuaLoaiVe(LoaiVe_dto);
        }

        public bool XoaLoaiVe(string MaLoaiVe)
        {
            LoaiVe_dao = new LoaiVe_DAO();
            return LoaiVe_dao.XoaLoaiVe(MaLoaiVe);
        }

        public DataTable DanhSachLoaiVe()
        {
            LoaiVe_dao = new LoaiVe_DAO();
            DataTable dt = new DataTable();
            dt = LoaiVe_dao.DanhSachLoaiVe();
            return dt;
        }

        public DataTable DanhSachLoaiVe_Ma(string ma)
        {
            LoaiVe_dao = new LoaiVe_DAO();
            DataTable dt = new DataTable();
            dt = LoaiVe_dao.DanhSachLoaiVe_Ma(ma);
            return dt;
        }

        public DataTable getGiaVeNguoiLon(string strBuoi, string strNgay)
        {
            LoaiVe_dao = new LoaiVe_DAO();
            DataTable dt = new DataTable();
            dt = LoaiVe_dao.getGiaVeNguoiLon(strBuoi, strNgay);
            return dt;
        }
    }
}
